package com.ccit.goods.repository;

import com.ccit.model.GoodsOrder;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface GoodsOrderRepository extends MongoRepository<GoodsOrder,String> {
    List<GoodsOrder> findGoodsOrderByGoodsId(Long goodsId);
    List<GoodsOrder> findGoodsOrderByGoodsIdAndPhone(Long goodsId,String phone);
    List<GoodsOrder> findGoodsOrderByPhoneOrderByTime(String phone);
}
